<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
    <title>山东国际贸易单一窗口-用户注册页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma" content="no-cache">
    <link href="${basePath}/singlewindows/css/base.css" rel="stylesheet" type="text/css"/>
    <link href="${basePath}/singlewindows/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="${basePath}/resources/css/shouye.css" rel="stylesheet" type="text/css"/>
    <link href="${basePath}/resources/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${basePath}/singlewindows/js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="${basePath}/singlewindows/layer/layer.js"></script>
    <link href="${basePath}/singlewindows/layer/skin/layer.css" rel="stylesheet">
    <%--<link href="http://cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">--%>
    <!--[if lt IE 9]>
    <script src="${basePath}/singlewindows/js/html5.js"></script>
    <![endif]-->
</head>
<body style="overflow: hidden">
<header>
    <div class="wrapper" style="margin-left: 20px">
        <script>
            function goToIndex(){
                var indexUrl = window.location.protocol + "//" + window.location.hostname;
                location.href = indexUrl;
            }
        </script>
        <a href="javascript:goToIndex()"><h1>山东电子口岸<span><script>document.write(window.location.hostname)</script></span></h1></a>

        <h2>单一窗口<span> Single Window</span></h2>
        <%--Shandong International Trade--%>
        <div class="cl"></div>
    </div>
    <div style="float: right;margin-right: 20px;margin-top: -20px !important;"> 欢迎您，
        <span id="welcomeName"></span>&nbsp;&nbsp;|&nbsp;&nbsp;<a id="indexUrl" href="#" onclick="returnIndex()">返回首页
        </a>
        <script>
            function returnIndex() {
                var index = window.location.protocol + "//" + window.location.hostname;
                location.href = index;
            }
        </script>
    </div>
</header>
<!--头部 end-->
<div class="mainContent">
    <div class="col-md-3  left">
        <div class="div1">
            <%--<div class="div2">--%>
                <%--<div class="zxcp"></div>--%>
                <%--备案管理&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
            <%--</div>--%>
            <%--<div class="div3">--%>
                <%--<ul>--%>
                    <%--<li onclick="ecommerceMenuClick('/ecommerce/entBackup/init');"> 申报主体备案</li>--%>
                <%--</ul>--%>
            <%--</div>--%>
            <div class="div2">
                <div class="xwzx"></div>
                用户信息管理
            </div>
            <div class="div3">
                <ul>
                    <li id="op" onclick="menuClick('center/operateInfo?r='+Math.random());"> 个人信息</li>
                    <li onclick="menuClick('center/passwordEdit');"> 密码修改</li>
                </ul>
            </div>
            <div class="div2">
                <div class="lmtj"></div>
                企业信息维护
            </div>
            <div class="div3">
                <ul>
                    <li onclick="menuClick('enterprise/enterpriseInformation?r='+Math.random());"> 企业信息&nbsp;&nbsp;&nbsp;</li>
                    <li onclick="menuClick('enterprise/childUsrManager?r='+Math.random());"> 子账号管理</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="div_frame">
        <div style="width: 100%;height: 100%;min-width: 800px;min-height: 500px;">
            <iframe id="content" scrolling="yes" frameborder="0" style="width: 100%;height: 100%;"
                    src=""></iframe>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        if (window != top) {
            top.location.href = location.href;
        }
        $(".div2").click(function () {
            $(this).next("div").slideToggle("normal").siblings(".div3:visible").slideUp("normal");
        });
        $(".div3 li").click(function () {
            $(".div3 li").removeClass("activeBg");
            $(this).addClass("activeBg");
        });
        $(".div3 li").mouseover(function () {
            $(this).addClass("active");
        });
        $(".div3 li").mouseout(function () {
            $(this).removeClass("active");
        });
        $.post("${basePath}/user/getSessionUser", function (data) {
            if (data) {
                if (data.logName == 'error') {
                    layer.msg('登录异常，请返回重新登录!', {
                        icon: 5, shade: [0.5, '#000', true]
                    }, function () {
                        window.top.location.href = window.location.protocol + "//" + window.location.hostname;
                    });
                }
                $("#welcomeName").html(data.name == '' ? data.logName : data.name);
                $(".xwzx").parent().next("div").slideToggle("normal").siblings(".div3:visible").slideUp("normal");
                $(".div3 li").removeClass("activeBg");
                $("#op").addClass("activeBg");
                menuClick('center/operateInfo?r='+Math.random());
            } else {
                history.go(-2);
            }
        }).error(function () {
            history.go(-2);
        });
    });

    function menuClick(uri) {
        $("#content").attr("src", "${basePath}/" + uri);
    }

    function ecommerceMenuClick(uri) {
        $("#content").attr("src", uri);
    }
</script>
</html>
